package com.findFish.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 机器鱼传感器数据对象 robot_fish_sensors
 * 
 * @author admin
 * @date 2025-03-31
 */
public class RobotFishSensors extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 传感器ID */
    private Long id;

    /** 机器鱼ID */
    @Excel(name = "机器鱼ID")
    private Long robotFishId;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timestamp;

    /** 温度 */
    @Excel(name = "温度")
    private BigDecimal temperature;

    /** pH值 */
    @Excel(name = "pH值")
    private BigDecimal phLevel;

    /** 氧气含量 */
    @Excel(name = "氧气含量")
    private BigDecimal oxygenContent;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRobotFishId(Long robotFishId) 
    {
        this.robotFishId = robotFishId;
    }

    public Long getRobotFishId() 
    {
        return robotFishId;
    }

    public void setTimestamp(Date timestamp) 
    {
        this.timestamp = timestamp;
    }

    public Date getTimestamp() 
    {
        return timestamp;
    }

    public void setTemperature(BigDecimal temperature) 
    {
        this.temperature = temperature;
    }

    public BigDecimal getTemperature() 
    {
        return temperature;
    }

    public void setPhLevel(BigDecimal phLevel) 
    {
        this.phLevel = phLevel;
    }

    public BigDecimal getPhLevel() 
    {
        return phLevel;
    }

    public void setOxygenContent(BigDecimal oxygenContent) 
    {
        this.oxygenContent = oxygenContent;
    }

    public BigDecimal getOxygenContent() 
    {
        return oxygenContent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("robotFishId", getRobotFishId())
            .append("timestamp", getTimestamp())
            .append("temperature", getTemperature())
            .append("phLevel", getPhLevel())
            .append("oxygenContent", getOxygenContent())
            .toString();
    }
}
